package Work;

public class Employee {
    String name;
    int age;
    double salary;

    Employee(String name,int age)
    {
        this.name = name;
        this.age = age;
    }

    public void printInfo()
    {
        System.out.println("姓名是" + this.name);
        System.out.println("年龄是" + this.age);
        System.out.println("工资是" + this.salary);
    }
}
